package models

import (
	"github.com/astaxie/beego/orm"
	"time"
)

type Article struct {
	Id int
	Title string `orm:"size(150)"`
	Image string `orm:"size(150)"`
	Label string `orm:"szie(50)"`
	Paper string `orm:"size(800)"`
	Article string `orm:"size(150)"`
	Sort int
	Read int `orm:"default(0)"`
	Live int `orm:"default(0)"`
	Status int `orm:"default(1)"`
	Created_at time.Time `orm:"type(date)"`
}

func init()  {
	orm.RegisterModel(new(Article))
}
